package aopDemo;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class LogAOP {
    //* aopDemo.CommentServiceImpl.post*(..)
    @Before("execution(* aopDemo.*.*(..))")
    public void beforeAdd(){
        System.out.println("加法前边执行beforeAdd()");
    }
}
